/*
 * @Author: 生俊甫 1758142861@qq.com
 * @Date: 2024-10-13 11:16:47
 * @LastEditors: 生俊甫 1758142861@qq.com
 * @LastEditTime: 2024-10-13 12:01:46
 * @FilePath: /sjf/2024-project/2024_centos/test_to_c/union_find_set/union_find.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "./union_find.hpp"

int main(int argc,char*argv)
{
    std::vector<int> arr = {0,1,2,3,4,5,6,7,8,9};
    union_find_set ufs(10);
    ufs.union_set(8,9);
    ufs.union_set(7,8);
    ufs.union_set(6,7);
    ufs.union_set(5,6);
    ufs.union_set(4,5);
    std::cout << ufs.get_num() << std::endl;
    return 0;
}